-- GENERATED SPELL FOR [Twilight Dark Shaman] --


function spell0_5860(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_5860', 3000, 1)
end

function spell1_5860(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(11824,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5860', 0, 1)
end

function spell2_5860(pUnit, Event) --@Shrink,n/a--
pUnit:FullCastSpellOnTarget(7289,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5860', 3000, 1)
end

function Sorts_5860(pUnit, Event)
local choix_sorts_5860 = math.random(0, 2)
if choix_sorts_5860 == 0 then
pUnit:RegisterEvent('spell0_5860', 1, 1)
end
if choix_sorts_5860 == 1 then
pUnit:RegisterEvent('spell1_5860', 1, 1)
end
if choix_sorts_5860 == 2 then
pUnit:RegisterEvent('spell2_5860', 1, 1)
end
end

function mob5860_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5860', math.random(1500, 3000), 1)
end

function mob5860_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5860_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5860_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5860, 1, 'mob5860_Action')
RegisterUnitEvent(5860, 2, 'mob5860_Leave')
RegisterUnitEvent(5860, 3, 'mob5860_Kill')
RegisterUnitEvent(5860, 4, 'mob5860_Die')
